
function pet(words){
    this.words=words;

    this.speek=function(){
        console.log("speak   "+this.words);
    }
}

function dog(words){
    pet.call(this,words);
}


// var  pet=new pet('...');
// pet.speek();

var dog=new dog('wang wang wang');
dog.speek();